package com.context.AdminControl;

import com.impl.admin.AddNewAccountImpl;
import com.impl.admin.AdminChangeAccountTypeImpl;
import com.mInterface.UsersData.UsersDataInterface;

public class AdminControlContext {


	private AdminControlContext(){}

	private static UsersDataInterface UDI;

	public final static int TYPE_ADD_NEW_ACCOUNT = 0;

	public final static int TYPE_CHANGE_ACCOUNT_TYPE = 1;
	
	public static UsersDataInterface getInstance( int type ){

		switch (type) {
		case TYPE_ADD_NEW_ACCOUNT:

			UDI = null;
			
			UDI = new AddNewAccountImpl();
			
			break;

		case TYPE_CHANGE_ACCOUNT_TYPE:
			
			UDI = null;
			
			UDI = new AdminChangeAccountTypeImpl();
			
			break;

		default:
			break;
		}

		return UDI;
	}
}

